package com.eastfair.venueservice.dto;

import com.eastfair.venueservice.enumeration.ServiceBorrowReturnGoodsLossStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.ServiceInventoryInFlowInStockTypeEnum;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 服务库存入库流水记录
 * </p>
 *
 * @author linan
 * @since 2022-09-19
 */
@Data
@ApiModel(value = "ServiceInventoryInFlowUpdateDTO", description = "服务库存入库流水记录")
public class ServiceInventoryInFlowDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 库存id
     */
    @ApiModelProperty(value = "库存id")
    private Long inventoryId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    @Size(max = 255, message = "库存编码长度不能超过255")
    private String inventoryCode;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    /**
     * 变动前库存数量
     */
    @ApiModelProperty(value = "变动前库存数量")
    private BigDecimal beforeInventoryNum;
    /**
     * 变动后库存数量
     */
    @ApiModelProperty(value = "变动后库存数量")
    private BigDecimal afterInventoryNum;
    /**
     * 入库数量
     */
    @ApiModelProperty(value = "入库数量")
    private BigDecimal inNum;
    /**
     * 入库类型 #{INIT:初始入库;ORDER_CANCEL:订单取消入库;REPAIR:维修入库;RETURN:归还入库}
     */
    @ApiModelProperty(value = "入库类型 #{INIT:初始入库;ORDER_CANCEL:订单取消入库;REPAIR:维修入库;RETURN:归还入库}")
    private ServiceInventoryInFlowInStockTypeEnum inStockType;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionManageId;
    /**
     * 服务部门id/服务商id/主场id
     */
    @ApiModelProperty(value = "服务部门id/服务商id/主场id")
    @NotNull(message = "服务部门不能为空",groups =  {ServiceItemDTO.AddCheck.class, ServiceItemDTO.UpdateCheck.class})
    private Long serviceProviderId;
    /**
     * 供应商类型 字典维护
     */
    @ApiModelProperty(value = "供应商类型 字典维护")
    @Size(max = 255, message = "供应商类型 字典维护长度不能超过255")
    private String serviceProviderType;
    /**
     * 物资完损状态 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏;UNDAMAGED:未损坏}
     */
    @ApiModelProperty(value = "物资完损状态 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏;UNDAMAGED:未损坏}")
    private ServiceBorrowReturnGoodsLossStateEnum goodsLossState;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;
}
